package com.rx.stang.service;

import com.rx.core.base.RxBaseConstant;
import com.rx.core.base.RxBaseService;
import com.rx.stang.service.impl.HystrixUuaFallbackFactory;
import com.rx.stang.vo.PermisionRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @version V1.0
 * @Title: LoginService
 * @Package com.rx.zuul.service
 * @Description: 登录服务接口
 * @author: 陈锦韬
 * @date: 2021\6\28 0028
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
@FeignClient(name = "uua",fallbackFactory= HystrixUuaFallbackFactory.class/*,path = "/user"*/)
public interface FeignUuaService extends RxBaseService {

    /**
     * 查询专栏权限
     * @param data
     * @return
     */
    @PostMapping(value = "rx-standard-api/single/uua-rel-user-columnist/standard/search-list" ,produces = RxBaseConstant.APPLICATION_JSON_UTF8_VALUE
    ,consumes = MediaType.APPLICATION_JSON_VALUE)
    List<PermisionRequest> searchColumnAuth(@RequestBody PermisionRequest data);
}
